import { Context } from 'koa'
import log from '../../config/logger'
import { Application } from '../../app'

class ExampleApp01 implements Application {
  init () {}

  service (ctx: Context) {
    log.info(`${ctx.contextUrl}, ${ctx.url}`)
    ctx.body = {
      app: 'ExampleApp01'
    }
  }

  destroy () {}
}

export default new ExampleApp01()
